package cn.tedu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

//@Controller
@RestController
@RequestMapping("/base")
public class HelloController {
    @RequestMapping("/hello1")
//    @ResponseBody
    public String hello1(){
        System.out.println("接收到动态请求");
        return "hello1";
    }
    @RequestMapping("/hello2")
//    @ResponseBody
    public String hello2(){
        System.out.println("接收到动态请求");
        return "hello2";
    }
    @RequestMapping("/hello3")
//    @ResponseBody
    public String hello3(){
        System.out.println("接收到动态请求");
        return "hello3";
    }
}
